<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<view class="uni-form-item uni-column">
			<view class="title">label内有多个时选中第一个</view>
			<checkbox-group class="uni-list" @change="checkboxChange">
				<label class="label-3">
					<view class="uni-list-cell uni-list-cell-pd">
						<checkbox class="checkbox-3">选项一</checkbox>
					</view>
					<view class="uni-list-cell uni-list-cell-pd">
						<checkbox class="checkbox-3">选项二</checkbox>
					</view>
					<view class="uni-link uni-center" style="margin-top:20rpx;">点击该label下的文字默认选中第一个checkbox</view>
				</label>
			</checkbox-group>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {
			
		},
		methods: {
checkboxChange(e){
	
}
		}
	}
</script>

<style>
	.uni-list-cell {
		justify-content: flex-start
	}
	
	.uni-list .label-3 {
		padding: 0;
	}
	
	.label-2-text {
	    flex: 1;
	}
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
